-- GENERATED SPELL FOR [Stormwind Champion] --


function spell0_33747(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(63010,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33747', 0, 1)
end

function spell1_33747(pUnit, Event) --@Shield-Breaker,n/a--
pUnit:FullCastSpellOnTarget(65147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33747', 250, 1)
end

function Sorts_33747(pUnit, Event)
local choix_sorts_33747 = math.random(0, 1)
if choix_sorts_33747 == 0 then
pUnit:RegisterEvent('spell0_33747', 1, 1)
end
if choix_sorts_33747 == 1 then
pUnit:RegisterEvent('spell1_33747', 1, 1)
end
end

function mob33747_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33747', math.random(1500, 3000), 1)
end

function mob33747_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33747_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33747_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33747, 1, 'mob33747_Action')
RegisterUnitEvent(33747, 2, 'mob33747_Leave')
RegisterUnitEvent(33747, 3, 'mob33747_Kill')
RegisterUnitEvent(33747, 4, 'mob33747_Die')
